/**
 * @filename:${entityName}Service ${createTime}
 * @project ${project}  ${version}
 */
package ${serviceUrl};

import ${entityUrl}.${entityName};
import com.starhub.engine.sys.user.bean.LoginUser;

import java.util.List;
import java.util.Map;
/**
 * @Description:(${entityComment}服务层)
 * @version: ${version}
 * @author: ${author}
 * 
 */
public interface ${entityName}Service {

    /**
    * 新增
    * @param user
    * @param ${entityNameLower}
    * @return
    */
    Long add(LoginUser user, ${entityName} ${entityNameLower});

    /**
    * 更新
    * @param user
    * @param ${entityNameLower}
    * @return
    */
    ${entityName} update(LoginUser user, ${entityName} ${entityNameLower});

    /**
    * 基本信息获取
    * @param user
    * @param id
    * @return
    */
    ${entityName} getInfo(LoginUser user, Long id);


    /**
    * (批量)删除，同时支持单条或者批量,此方法为逻辑删除
    * @param user
    * @param ids
    */
    void deleteByType(LoginUser user, String ids,int deleteType);

   /**
   * 根据id删除，此方法为真实删除
   * @param user
   * @param ids
   */
    void deleteRecord(LoginUser user, String ids);

    /**
    * 列表查询
    * @param user
    * @param params
    */
    List<${entityName}> getList(LoginUser user, Map<String , Object> params);

 }
